<%@ include file="../layouts/_header.jsp"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<!--  body -->
<form action="<j:uri controller="service" action="save"/>" method="post"
	id="saveForm">
<c:if test="${flash['message_success']!=null}">
	<li class="message_success"><fmt:message key="${flash['message']}" /></li>
</c:if>
<c:if test="${flash['message_fail']!=null}">
	<li class="message_fail"><fmt:message key="${flash['message']}" /></li>
</c:if>
<c:if test="${flash['message']!=null}">
	<li class="message"><fmt:message key="${flash['message']}" /></li>
</c:if>

<table border="0" cellspacing="1" cellpadding="0" class="edit">
	<tr>
		<td class="title">ContextPath:</td>
		<td class="content">
			<input type="text" class="input" name="contextPath" value="${service.propertyValues['contextPath'].value}" /> 
			<c:if test="${service.propertyValues['contextPath'].errorMessage!=null}">
			<br/><span style="color:red">${service.propertyValues['contextPath'].errorMessage} </span>
			</c:if>
		</td>
		<td class="title">Name:</td>
		<td class="content"><input type="text" class="input" name="name"
			value="${service.propertyValues['name'].value}" /> <c:if
			test="${service.propertyValues['name'].errorMessage!=null}">
			<br/><span style="color:red">${service.propertyValues['name'].errorMessage} </span>
		</c:if></td>
	</tr>
	<tr>
		<td class="title">Version:</td>
		<td class="content"><input type="text" class="input"
			name="version" value="${service.propertyValues['version'].value}" /> <c:if
			test="${service.propertyValues['version'].errorMessage!=null}">
			<span>${service.propertyValues['version'].errorMessage} </span>
		</c:if></td>
		<td class="title"></td>
		<td class="content"></td>
	</tr>
	<tr>
		<td colspan="4" class="footer" align="center">
			<input
			type="button" class="button"
			value="<fmt:message key="form.button.save"/>"
			onclick="javascript:saveItem()" /> 
			<input
			type="button" class="button"
			value="<fmt:message key="form.button.concel"/>"
			onclick="j.window({id:'create_service'}).hide()" />
		</td>
	</tr>
</table>

</div>
</form>